<li>
                        <span><a href="{dede:field  name='typeurl'/}" title="{dede:field name='typename'/}">{dede:field name='typename'/}</a></span>
                        <i class="product_nav-on"></i>
                        <div style="display: block">
                            {dede:sql sql='Select * from dede_arctype where reid=~id~ order by sortrank asc' }
                            <a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]">[field:typename/]</a>
                            {/dede:sql}
                        </div>
                    </li>